import java.util.Random;
import java.util.Scanner;

//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
        Random ret = new Random();
        Scanner scan = new Scanner(System.in);
        int randNum = ret.nextInt(101);
        int su;
        while(true){
            System.out.println("请输入你所猜的数字：");
            su = scan.nextInt();
            if(su < randNum){
                System.out.println("猜小了");
            }else if(su == randNum){
                System.out.println("猜对了");
                break;
            }else{
                System.out.println("猜大了");
            }
        }
    }
}